package main

import (
	"fmt"
	"time"
	"yundian/internel/pkg/dbs"
	"yundian/internel/pkg/dingo"
	"yundian/internel/pkg/utils"
)

func main() {
	dingo.InitViper("./configs/alipay.yaml")
	dbs.NewMysqlComponent().Step()
	dbs.NewRedisComponent().Step()

	//client := logic.NewAliPayOrderLogic()
	//client.TradeNo = "ZM20220317173244996582"
	//agreementInfo, err := client.ExecUserAgreementSign()
	//fmt.Println(agreementInfo)
	//fmt.Println(err)
	fmt.Println(utils.AddDate(time.Now(), 0, 1).Format("2006-01-") + "28")
}
